/*header--------------------*/

.header {
  background-image: url(../img/headerBackground1.jpg);
  background-size: cover;
  background-repeat: no-repeat;

  padding: 3.5% 4.4% 0 4.5%;
  // padding: 64px 84px 0 85px;
  &__input {
    width: 154px;
    display: flex;
    justify-content: space-between;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 17px;
    line-height: 23px;
    margin-left: 14px;

    &::placeholder {
      color: rgba(255, 255, 255, 0.5);
    }
  }
  &__top {
    display: flex;
    justify-content: space-between;
    &-search {
      position: relative;
      max-width: 188px;
      display: flex;
      justify-content: space-between;
      align-items: center;
        &-svg{
          position: absolute;
          cursor: pointer;
          
        }
        transition: all 1s;
        &:hover::after{
          width: 75%;
          height: 35px;
          content: 'Введите запрос';
          font-family: "Open Sans", sans-serif;
          font-size: 14px;
          text-align: center;
          padding: 8px 2px;
          position: absolute;
          z-index: 11;
          left: -10px;
          right: 0;
          bottom: -200%;
          background: #8a817b;
          border-radius: 3%;
          color: $color-white;
        }
      .header__input {
        padding-left: 19px;
        &.value {
          color: $color-black;
        }
      }
    }
    margin-bottom: 196px;
  }
  &__logo {
    font-weight: 700;
    font-size: 24px;
  }
  &__nav {
    display: flex;
    justify-content: space-between;
  }
  &__list {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
  }
  &__link {
    color: $color-white;
    margin-right: 50px;
    transition: all 1s;
    &.last-link {
      margin-right: 0;
    }
    &:hover {
      opacity: 0.6;
    }
  }
  &__row {
    display: flex;
    justify-content: center;
    position: relative;
  }
  &__social {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    align-items: flex-start;
    &-text {
      font-weight: 600;
      line-height: 25px;
      // color: $color-white;
      transform: rotate(90deg);
      -webkit-transform: rotate(90deg);
      -moz-transform: rotate(90deg);
      -ms-transform: rotate(90deg);
      -o-transform: rotate(90deg);
      margin-bottom: 50px;
      margin-left: -30px;
    }
    &-link {
      margin-bottom: 20px;
      transition: all 0.5s;
      &:hover {
        opacity: 0.6;
      }
    }
    .link-f {
      margin-bottom: 0;
    }
  }
}

.header__title-box {
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 860px;
  margin-bottom: 874px;
  @import "./title-box";

  .header__title {
    text-transform: capitalize;

    .header__title-bold {
      font-weight: 700;
      font-size: 96px;
      margin-bottom: 35px;
    }
    .header__title-regular {
      font-weight: 400;
      font-size: 88px;
      margin-bottom: 142px;
    }
  }
  .header__scroll {
    display: flex;
    justify-content: center;
    &-text {
      // color: $color-white;
      font-weight: 600;
      line-height: 25px;
      margin-right: 9px;
    }
    svg {
      cursor: pointer;
      transition: all 1s;
      &:hover {
        opacity: 0.6;
        transform: translateY(5px);
        -webkit-transform: translateY(5px);
        -moz-transform: translateY(5px);
        -ms-transform: translateY(5px);
        -o-transform: translateY(5px);
      }
    }
  }
}

@media (max-width: 1130px) {
  .header__title-box {
    .header__title {
      .header__title-bold {
        font-size: 85px;
      }
      .header__title-regular {
        font-size: 77px;
      }
    }
  }
}

@media (max-width: 1024px) {
  .header__title-box {
    .header__title {
      .header__title-bold {
        font-size: 80px;
      }
      .header__title-regular {
        font-size: 65px;
      }
    }
  }
}

@media (max-width: 870px) {
  .header__social {
    display: none;
  }
}

@media (max-width: 768px) {
  // .toogle{
  //   transform: translateY(10%);
  // }
  .header__top{
    position: relative;
    transition: all 0.3s ease 0s;
    .header__nav {
      // display: none;
      transition: all 1s;
      // transform: translateY(-150%);
      z-index: 10;
      position: absolute;
      top: -3000%;
      width: 100%;
      height: 50vh;
      // background-color: $color-white;
      background-color: rgb(151, 139, 130);
      
      .header__list{
        flex-direction: column;
        justify-content: start;
        text-align: center;
        margin: 30px auto;

        .header__item{
          margin-bottom: 25px;

          .header__link{
            margin: 0 auto; 
            // color: rgb(228, 198, 176);
            &:hover{
              opacity: 0.6;
              color: rgb(31, 28, 26);
            }
          }
        }
      }
      &.active{
        // transform: translateY(10%);
        top: 35px;
      }
    }
  }
  
  .header__title-box {
    .title-box {
      &__svg {
        display: none;
      }
      .title-text {
        margin-left: 0;
      }
    }
  }
  .header__top-search {
    order: 1;
    &:hover::after{
      bottom: -180%;
    }
  }
  
  .header__burger {
    cursor: pointer;
    order: 2;
    display: flex;
    width: 7%;
    align-items: center;
    // border: 1px solid rgb(180, 172, 172);
    &-line {
      width: 100%;
      height: 2px;
      display: flex;
      background-color: $color-white;
      position: relative;
      &::before {
        content: "";
        position: absolute;
        top: 11px;
        width: 100%;
        height: 2px;
        display: flex;
        background-color: $color-white;
      }
      &::after {
        content: "";
        position: absolute;
        top: -11px;
        width: 100%;
        height: 2px;
        display: flex;
        background-color: $color-white;
      }
    }
  }
}

@media (max-width: 480px) {
  .header__input {
    max-width: 100px;
    margin-right: 30px;
  }
  .header__title-box {
    .title-text {
      font-size: 14px;
      text-align: initial;
    }
  }
  .header__title-box {
    .header__title {
      .header__title-bold {
        font-size: 70px;
      }
      .header__title-regular {
        font-size: 47px;
      }
    }
  }
  .header__burger {
    width: 10%;
  }
  .header__top-search {
    order: 1;
    &:hover::after{
      width: 80%;
    }
  }
}
